public class User {
    public static User getInstance(){
        return test1.INSTANCE.getUser();
    }
    private enum test1{
        INSTANCE();
        private User User;
        test1(){
            System.out.println("test");
            User=new User();
        }
        public User getUser(){
            return User;
        }
    }
}
